package com.missilike.domain.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.missilike.domain.model.MilAccountDO;
import com.missilike.domain.response.MilAccountInfo;
import com.missilike.repository.entity.MilAccount;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MilAccountInfoMapper {
    MilAccountInfoMapper MAPPER = Mappers.getMapper(MilAccountInfoMapper.class);

    MilAccountInfo toInfo(MilAccount account);

    List<MilAccountInfo> toList(List<MilAccount> account);

    Page<MilAccountInfo> pageConvert(IPage<MilAccount> page);

    MilAccount formDO(MilAccountDO milAccountDO);
}
